package com.dkm.ou.me.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ou.me.domain.SubSys;
import com.dkm.ou.me.persistence.dao.SubSysQueryDao;
import com.dkm.ou.me.persistence.entity.SubSysPo;
import com.dkm.ou.me.repository.SubSysRepository;

/**
 * 对象功能:子系统 Repository接口的实现类
 * 开发公司:唯心六艺软件 - Craft6.cn
 * 开发人员:winston
 * 创建时间:2014-07-21 11:08:30
 */
@Repository
public class SubSysRepositoryImpl extends AbstractRepository<String, SubSysPo,SubSys> implements SubSysRepository{
	  
	@Resource
	private  SubSysQueryDao subSysQueryDao;

	public SubSys newInstance() {
		SubSysPo po = new SubSysPo();
		SubSys subSys = SpringHelper.getBean(SubSys.class);
		subSys.setData(po);
		return subSys;
	}

	public SubSys newInstance(SubSysPo po) {
		SubSys subSys = SpringHelper.getBean(SubSys.class);
		subSys.setData(po);
		return subSys;
	} 
	
	@Override
	protected IQueryDao<String, SubSysPo> getQueryDao() {
		return subSysQueryDao;
	}
	
}
